<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width,user-scalable=0"/>
    <meta charset="UTF-8">
    <title>我的预约</title>
    <script src="__api__/js/fontSize.js"></script>
    <link rel="stylesheet" href="__api__/css/bootstrap.min.css">
    <link rel="stylesheet" href="__api__/css/reset.css">
    <link rel="stylesheet" href="__api__/css/my_main.css">
</head>
<body>

<div class="find_nav">

        <div class="find_nav_left">
            <div class="find_nav_list">
                <ul id="pagenavi1">
                    <li>
                        <a href="{:url('api/Venueappoint/selectLists')}?datetime=2017.11.9" class="active">
                            <p>今天</p>
                            <p>{php}echo date("m.d"){/php}</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+1 days")){/php}">
                            <p>明天</p>
                            <p>{php}echo date('m.d',strtotime("+1 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+2 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+2 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                            <p>{php}echo date('m.d',strtotime("+2 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                         <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+3 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+3 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                            <p>{php}echo date('m.d',strtotime("+3 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                       <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+4 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+4 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                            <p>{php}echo date('m.d',strtotime("+4 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                         <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+5 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+5 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                           <p>{php}echo date('m.d',strtotime("+5 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+6 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+6 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                           <p>{php}echo date('m.d',strtotime("+6 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                         <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+7 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+7 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                            <p>{php}echo date('m.d',strtotime("+7 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+8 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+8 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                            <p>{php}echo date('m.d',strtotime("+8 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                        <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+9 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+9 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                            <p>{php}echo date('m.d',strtotime("+9 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                       <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+10 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+10 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                           <p>{php}echo date('m.d',strtotime("+10 days")){/php}</p>
                        </a>
                    </li>
                    <li>
                         <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+11 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+11 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                           <p>{php}echo date('m.d',strtotime("+11 days")){/php}</p>
                        </a>
                    </li>
                     <li>
                       <a href="{:url('api/Venueappoint/selectLists')}?datetime={php}echo date('Y.m.d',strtotime("+12 days")){/php}">
                            <p>周{php} 
                            $s=date('w',strtotime("+12 days"));
                            switch($s){
                            case 1:$s=一;
                            break;
                            case 2:$s=二;
                            break;
                            case 3:$s=三;
                            break;
                            case 4:$s=四;
                            break;
                            case 5:$s=五;
                            break;
                             case 6:$s=六;
                            break;
                             case 0:$s=日;
                            break;
                            }
                            
                            echo $s;
                            
                            {/php}</p>
                           <p>{php}echo date('m.d',strtotime("+12 days")){/php}</p>
                        </a>
                    </li>
                    <li class="sideline"></li>
                </ul>

            </div>
        </div>
    </div>



<div id="slider1" class="swipe2">

    <ul class="box01_list">
        <li class="li_list">
            <div class="container">
             {volist name="data" id="vo"}
                <div class="reser1">
                    <div class="row">
                   
                        <div class="col-xs-3 col-md-3" style="width: 22%;">
                            <img src="__api__/{$vo.extra['img']}">
                        </div>
                        <div class="col-xs-6 col-md-6" style="width: 55%;padding-left: 0;">
                            <div class="evaluate_text">
                                <h3>{$vo.extra['designation']}</h3>
                                <p>已预约{$vo.appoint_time}场地位{$vo.count}个
               {notempty name="vo.startime"}
               （课程已选）
{/notempty}
                                </p>
                            </div>
                        </div>
                        <div class="col-xs-3 col-md-3" style="width: 23%;padding-left: 0.15rem;">
                            <button>
                             <span class="again">{switch name="vo.status"}{case value="0"}审核中{/case}
    {case value="1"}<a href="{:url('Qrcode/index')}?place_id={$vo.place_id}&appoint_time={$vo.appoint_time}&riqi={$vo.riqi}" style="color:#ff8903">开始健身</a>{/case}
    {case value="2"}<a href="/api/Qrcode/index?place_id={$vo.place_id}&appoint_time={$vo.appoint_time}&riqi={$vo.riqi}" style="color:#ff8903">进行中</a>{/case}
    {case value="3"}<a href="" style="color:#ff8903">待支付</a>{/case}
    {case value="4"}<a href="/api/Myevaluation/create?place_id={$vo.place_id}&appoint_time={$vo.appoint_time}&riqi={$vo.riqi}" style="color:#ff8903">已结束</a>{/case}
    {case value="10"}已取消{/case}
    {/switch}</span></button>
                        </div>
                    </div>
                </div>
                {/volist}
                      </div>
<script src="__assets__/js/jquery.min.js"></script>
<script src="__api__/js/touchslider.js"></script>
<script src="__api__/js/navSlider.js"></script>
<script>

$(function(){
    $(".again").each(function(){
        if($(this).text()=="审核中"){
            $(this).css("color","#666666");
            $(this).css("border","1px solid #666666");
        }else if($(this).text()=="已取消"){
            $(this).css("color","#666666");
            $(this).css("border","1px solid #666666");
        }
    })
});
</script>
</body>
</html>